/*
 * Copyright (c) Becker All rights reserved.
 *
 *
 * 未经允许，不可做商业用途！
 *
 * 版权所有，侵权必究！
 */

package com.tcm.pay.domain.pojo;


import java.io.Serializable;
import java.time.LocalDateTime;

public class SocialLogin implements Serializable {
    /**
     * id 表主键id
     */
    private Long id;

    /**
     * 本系统userId
     */

    private Long userId;

    /**
     * 本系统租户id
     */
    private Long tenantId;

    /**
     * 客户端类型（本系统用户，前端用户）
     */
    private String clientType;

    /**
     * 第三方系统标识 微信和QQ及小米等是openid，支付宝是user_id
     */

    private String identifier;

    /**
     * 第三方系统授权类型（weibo，qq，wechatmp，wechatopen）
     */
    private String identityType;

    /**
     * 第三方系统昵称
     */
    private String nickname;

    /**
     * 第三方系统头像
     */
    private String avatar;

    /**
     * 第三方系统unionid
     */
    private String unnionid;

    /**
     * 第三方系统访问令牌
     */
    private String accessToken;

    /**
     * 第三方系统刷新令牌
     */
    private String refreshToken;

    /**
     * 第三方系统访问令牌生命周期（单位：秒）
     */
    private Integer expireIn;

    /**
     * 更新时间
     */
    private LocalDateTime updateTime;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    public void setTenantId(Long tenantId) {
        this.tenantId = tenantId;
    }

    public Long getTenantId() {
        return tenantId;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getNickname() {
        return nickname;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setClientType(String clientType) {
        this.clientType = clientType;
    }

    public String getClientType() {
        return clientType;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public void setExpireIn(Integer expireIn) {
        this.expireIn = expireIn;
    }

    public Integer getExpireIn() {
        return expireIn;
    }

    public void setIdentifier(String identifier) {
        this.identifier = identifier;
    }

    public String getIdentifier() {
        return identifier;
    }

    public void setIdentityType(String identityType) {
        this.identityType = identityType;
    }

    public String getIdentityType() {
        return identityType;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUnnionid(String unnionid) {
        this.unnionid = unnionid;
    }

    public String getUnnionid() {
        return unnionid;
    }

    public void setRefreshToken(String refreshToken) {
        this.refreshToken = refreshToken;
    }

    public String getRefreshToken() {
        return refreshToken;
    }

}